package models

type Weixin struct {
	WeixinShowId int
	Name string
	GroupName string
	Pic string
	Sort int
	Status int
	UpdateTime string
	CreateTime string
}

func (Weixin) TableName() string {
	return "weixin_show"
}

func GetShowData(t int) (weixinShows []Weixin) {
	db.Where(&Weixin{Status:t}).Order("sort asc", true).Limit(4).Find(&weixinShows)
	return
}